<?php
/**************************************************
* PluginLotto.com                                 *
* Copyrights (c) 2005-2010. iZAP                  *
* All rights reserved                             *
***************************************************
* @author iZAP Team "<support@izap.in>"
* @link http://www.izap.in/
* @version {version} $Revision: {revision}
* Under this agreement, No one has rights to sell this script further.
* For more information. Contact "Tarun Jangra<tarun@izap.in>"
* For discussion about corresponding plugins, visit http://www.pluginlotto.com/pg/forums/
* Follow us on http://facebook.com/PluginLotto and http://twitter.com/PluginLotto
 */

$poll = $vars['entity'];
$url = func_set_href_byizap(array(
    'plugin' => GLOBAL_IZAP_POLL_PLUGIN,
    'page' => 'single',
    'page_owner' => $poll->getOwnerentity()->username,
    'vars' => array( $poll->guid ),

));

$html .= '<div class="contentWrapper">';
$html .= elgg_view('output/result_only', array( 'entity' => $poll ));
$html .= '<p>'.$poll->description.'</p>';
$html .= '<div class="izap_delete_etc"><a href="'.$url.'">'.elgg_echo('izap_poll:poll_now').'</a></div>';
$html .= '</div>';
$html .= elgg_view_comments($poll);
echo $html;
?>
